// 系统管理
import systemManage from '@/admin/views/system-manage/router'
// 应用首页
import dashboard from '@/views/dashboard/router'
// 客户线索表管理
import customer from '@/views/saas-business/router'
// 客户列表
import client from '@/views/saas-client/router'
// 产品管理
import product from '@/views/saas-product/router'
// 功能配置
import configuration from '@/views/saas-configuration/router'


export default [
    {
        path: '/error403',
        component: () => import('~/layout/index'),
        children: [
            {
                path: '',
                meta: {title: '权限不足'},
                component: () => import('@/views/_error/403')
            }
        ]
    },
    systemManage,
    dashboard,
    customer,
    client,
    product,
    configuration,
    {
        path: '/',
        redirect: '/dashboard',
    },
    {
        path: '/login',
        component: () => import('@/views/login/index')
    },
    {
        path: '*',
        component: () => import('~/layout/index'),
        children: [
            {
                path: '',
                meta: {title: '首页'},
                component: () => import('@/views/dashboard/index')
            }
        ]
    },
]
